package com.lagou.dao;

import com.lagou.pojo.LagouAuthCode;
import com.lagou.pojo.LagouUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends JpaRepository<LagouUser, Integer>{

//    @Query(value = "select * from lagou_auth_code where email = 'leizhihang1991@163.com' ORDER BY createtime DESC LIMIT 1", nativeQuery = true)
//    LagouAuthCode getLastAuthCode(String email);

}
